package com.example.module_home.model

import com.example.lib_base.BaseResponse
import com.example.lib_http.RetrofitManager
import com.example.module_home.api.HomeApiService
import com.example.module_home.entity.CommentEntity
import com.example.module_home.entity.RecommendVideoEntity
import retrofit2.http.Query

class HomeModel {
    private val api:HomeApiService=RetrofitManager.instance.create(HomeApiService::class.java)
    suspend fun getRecommendVideo( page:Int, size:Int): BaseResponse<List<RecommendVideoEntity>>{
        return api.getRecommendVideo(page, size)
    }
    suspend fun getComment( type:Int,id:String):BaseResponse<List<CommentEntity>>{
        return api.getComment(type, id)
    }
}